package demo.execises;

import java.util.Scanner;

/**
 * @author yulian174
 * @version 1.0
 * 饿汉式
 */
public class E {
    //自定义异常
    public static void main(String[] args) {
        A.print();
    }
}

class A {
    public static void print() {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        StringBuffer stringBuffer = new StringBuffer(s1);
        for (int i = stringBuffer.indexOf(",") - 3; i > 0; i -= 3) {
            stringBuffer = stringBuffer.insert(i, ".");
        }
        String s2 = stringBuffer.toString();
        sc.close();
        System.out.println(s2);;
    }
}







